var ID = 0;

function Flag(title, lat, lon) {
  this.title = title;
  this.id = this.title +"-"+ ID;
  this.lat = lat;
  this.lon = lon;
  this.placemark = createPlacemark(this.title, this.id, this.lat, this.lon);
  ID++;
  //  var me = this;
  //  geoLookup(geoLoc, function(point) { me.createFlag(point.y, point.x); });
}

Flag.prototype.createFlag = function(lat, lon) {
  this.lat = lat;
  this.lon = lon;
  this.placemark = createPlacemark(this.title, this.id, lat, lon);
}

Flag.prototype.getLatitude = function () {
  return this.lat;
}

Flag.prototype.getLongitude = function () {
  return this.lon;
}
